;
(function () {
  'use strict';
  angular.module('controllers.analysisSysOM.responseTime')
    .controller('historicalTimeController', historicalTimeController);

  function historicalTimeController($scope, historicalTimeService,COREDATA,$mdDialog) {
    $scope.historicalTime = historicalTimeService;

    $scope.exportUrl = COREDATA.FORMPREFIX + 'analysisSysOM/sysPerformance/responsetime/exportHistoricalData';
    historicalTimeService.initSelectMenu();
    //historicalTimeService.search();
    $scope.$on('$destroy', function () {
      historicalTimeService.reset();
      $mdDialog.hide();
    });
  }

  historicalTimeController.$inject = ['$scope', 'historicalTimeService','COREDATA','$mdDialog'];
})();